package com.lanchetech.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lanchetech.entity.ShopRelationship;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ShopRelationshipMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ShopRelationship record);

    int insertSelective(ShopRelationship record);

    ShopRelationship selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ShopRelationship record);

    int updateByPrimaryKey(ShopRelationship record);

    ShopRelationship findOneByShopId(@Param("shopId") Long shopId);


    List<ShopRelationship> findAllByUserId(@Param("userId") Long userId);

    Integer getRecommendShopNumber(@Param("id") Long id);
}